# -- coding: utf-8 --
from tools.Request_General import BaseAPI


class FinancialModel(BaseAPI):
    """
    财务模型相关接口
    """

    def get_cube_data(self, params):
        """获取财务模型信息"""
        r = self.request_send(params=params)
        return r

    def query_workbook_button_info(self, params):
        """获取电子表格按钮信息"""
        r = self.request_send(params=params)
        return r

    def query_workbook_data(self, payload):
        """打开电子表格使用视图"""
        r = self.request_send(json=payload)
        return r

    def find_workbook_info(self, params):
        """打开电子表格编辑视图"""
        r = self.request_send(params=params)
        return r

    def cube_dimension(self, params):
        r = self.request_send(params=params)
        return r
